package model

import "github.com/tsingshaner/gin/shared"

type Report struct {
	shared.Model
	CourseID  shared.ID `gorm:"index:idx_course;type:bigint;not null"`
	ClassID   shared.ID `gorm:"index:idx_class;type:bigint;not null"`
	StudentID shared.ID `gorm:"index:idx_student;type:bigint;not null"`
	Content   Content   `gorm:"foreignKey:ReportID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE"`
}
